package com.meituan.catering.management.order.dao.mapper;

import com.meituan.catering.management.order.dao.model.CateringOrderItemAccessoryDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 订单子项加料对应的MyBatis Mapper
 */
@Mapper
public interface CateringOrderItemAccessoryMapper {

    /**
     * 根据订单子项id查询加料
     *
     * @param tenantId
     * @param orderItemIds
     * @return
     */
    List<CateringOrderItemAccessoryDO> findById(Long tenantId, @Param("set") Set<Long> orderItemIds);

    int insert(List<CateringOrderItemAccessoryDO> cateringOrderItemAccessoryDOList);

    int update(List<CateringOrderItemAccessoryDO> cateringOrderItemAccessoryDOList);
}
